Skip to content

execFile方法在win10x64执行doxmate-build出错,改了#40

Open
MemoryNoodles wants to merge 1 commit intoJacksonTian:masterfrom
MemoryNoodles:master
Open

execFile方法在win10x64执行doxmate-build出错,改了#40
MemoryNoodles wants to merge 1 commit intoJacksonTian:masterfrom
MemoryNoodles:master

Conversation

@MemoryNoodles
Copy link
Copy Markdown

./bin/doxmate这个文件的
// execFile(local, args, options, function (err, stdout) {
// if (err) {
// console.error(err);
// return;
// }
// console.log(stdout);
// });
改为
execFile("node", [local], function (err, stdout) {
if (err) {
console.error(err);
return;
}
console.log(stdout);
});在win10x64可以执行成功

var options = {maxBuffer: 1024 * 1024};
execFile(local, args, options, function (err, stdout) {
if (err) {
execFile("node", [local], function (err, stdout) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你把 args 和 options 丢了。

Copy link
Copy Markdown
Owner

@JacksonTian JacksonTian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SMC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants